/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package soapspike;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Renato Rosa <2101076@my.ipleiria.pt>
 */
@WebService(name = "Filas", serviceName = "FilasService", portName = "FilasPort")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class ServiceMethods {

    @WebMethod(operationName = "update")
    public String update(@WebParam(name = "data") final ServiceMethods.InfoFilaEspera[] info) {
        return "OK";
    }

    @XmlRootElement
    public static class InfoFilaEspera {

        @XmlElement(required = true)
        public String balcao;
        @XmlElement(required = true)
        public String fila;
        @XmlElement(required = true)
        public int numero;

        public InfoFilaEspera() {
        }

        public InfoFilaEspera(String balcao, String fila, int numero) {
            this.balcao = balcao;
            this.fila = fila;
            this.numero = numero;
        }
    }
}
